<template>
  <div>
    <slot></slot>
    <v-dialog v-model="isShow" max-width="380px">
      <v-card>
        <v-card-title>
          <span class="headline">{{ $t("assessment.Conclusion") }}</span>
        </v-card-title>
        <div class="content">
          <slot></slot>
        </div>

        <div class="footer">
          <span @click="isShow = false">{{ $t("assessment.Close") }}</span>
        </div>
      </v-card>
    </v-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isShow: false,
    };
  },
  mounted() {
    this.$Bus.$on("isShowConclusion", (data) => {
      this.isShow = true;
    });
  },
};
</script>

<style lang="scss" scoped>
.content {
  margin: 10px 20px;
}
.footer {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 10px 0 20px;
}
.footer span {
  display: inline-block;
  padding: 7px 30px;
  margin: 0 26px;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background-color: $mainColor;
  cursor: pointer;
  outline: none;
}
</style>
